package nc.ui.jx.ic.move;

import java.util.ArrayList;

import nc.ui.trade.business.HYPubBO_Client;
import nc.vo.jx.ic.move.MoveBillVO;
import nc.vo.jx.ic.move.MoveBodyVO;
import nc.vo.jx.ic.move.MoveHeaderVO;
import nc.vo.jx.pub.JxPubTool;

public class ClientBillHelper {
	public static MoveBillVO[] queryBillByIDs(ArrayList<String> alHeadPK)
			throws Exception {
		if(alHeadPK == null || alHeadPK.size() <= 0){
			return null;
		}
		String[] headpks = alHeadPK.toArray(new String[0]);
		
		Object o = HYPubBO_Client.queryBillVOByCondition(new String[] {
				MoveBillVO.class.getName(), MoveHeaderVO.class.getName(),
				MoveBodyVO.class.getName() }, "ca_movebill.cmovehid in "
				+ JxPubTool.getSubSql(headpks) + " ");
		return o == null ? null : (MoveBillVO[]) o;
	}
}
